package com.example.example003;

class ParentClass1 {

	public int i = 10;
}

public class SubClass1 extends ParentClass1 {
	public int i = 30;

	public static void main(String[] args) {
		
		ParentClass1 parentClass = new SubClass1();
		System.out.println(parentClass.i);
		
		SubClass1 subClass = new SubClass1();
		System.out.println(subClass.i);
		
		System.out.println(parentClass.i + subClass.i);
		
	}

}
